package com.pocketsweet.model;

import java.util.List;

import com.avos.avoscloud.AVClassName;
import com.avos.avoscloud.AVFile;
import com.avos.avoscloud.AVObject;

@AVClassName("MLRecommendUser")
public class MLRecommendUser extends AVObject {
	public static String USER = "user";// 推荐的人
	public static String INTRO = "intro";// 推荐的介绍
	public static String IMAGES = "images";// 推荐的人的照片
	public static String ARTICLE = "article";

	public MLRecommendUser() {

	}

	// 推荐的人（外键1:1）
	public MLUser getUser() {
		return (MLUser) super.getAVUser(USER);
	}

	public void setUser(MLUser user) {
		super.put(USER, user);
	}

	// 属于的文章（外键1:1）
	public MLArticle getArticle() {
		return (MLArticle) super.getAVObject(ARTICLE);
	}

	public void setUser(MLArticle vlaue) {
		super.put(ARTICLE, vlaue);
	}

	// 推荐的介绍
	public String getIntro() {
		return super.getString(INTRO);
	}

	public void setIntro(String value) {
		super.put(INTRO, value);
	}

	// 推荐的照片
	@SuppressWarnings("unchecked")
	public List<AVFile> getImages() {
		return (List<AVFile>) super.getList(IMAGES);
	}

	public void setImage(List<AVFile> value) {
		super.put(IMAGES, value);
	}

	public void addImages(List<AVFile> value) {
		addAllUnique(IMAGES, value);
	}
}
